package com.tunan.system.att.utils;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 组合模型类
 */
public class BscAttForm implements Serializable{
	
	private static final long serialVersionUID = 1L;


	private String tableName;//业务表名。如：NOTICE或ads.NOTICE。

    private String recordId;//业务记录ID

    private String attDetailId;//附件文件记录ID
    
    private String memo;//拓展字段
    
    private String attDiskName;//附件磁盘名称
    
    private String orgSeq;//组织序列号

	private String pkName;//附件业务表主要名称
	
	
	private String id;//主健

    private String attCode;//附件编号

    private String attName;//附件名称

    private Long attSize;//附件大小。以字节为单位。

    private String attType;//附件类别

    private String attFormat;//附件格式

    private Integer sortNo;//排列顺序号

    private String isDbStore;//是否存储到数据库。0表示磁盘存储，1表示数据库存储。

    private String attPath;//附件文件路径。适用于磁盘存储，支持相对和绝对路径。
    private String isRelative;//是否相对路径
	private String isEncrypt;//是否加密存储。0表示非加密存储，1表示加密存储。
	private String encryptClass;//加密实现类全名
	private String messageDigest;//信息摘要

    private String memo1;//备注1

    private String memo2;//备注2

    private String memo3;//备注3

    private String memo4;//备注4

    private Date memo5;//备注5

    private Date memo6;//备注6

    private String creater;//创建人姓名

    private Date createTime;//创建时间

    private String modifier;//修改人姓名

    private Date modifyTime;//修改时间
    

    
	// 扩展属性
	private boolean isAttachmentContentChange;	//附件内容是否被修改
	private String newAttPath;					//用户修改后的附件路径
	private String newAttName;					//用户修改后的文件名
	private List<BscAttForm> curAttachmentList;	//当前业务模块的附件列表
	
	//--为制文功能而增加的属性
	private String templateCode;
	private String printTplPath;
	private String zhengwenPath;
	private String redHeadPath;

	//后台附件管理权限属性
    private String canListDetail;//是否能够查询附件记录。0表示不能查询，1表示能够查询。

    private String canReadDetail;//是否能够读取附件记录。0表示不能读取，1表示能够读取。

    private String canReadStore;//是否能够读取附件文件内容。0表示不能读取或下载，1表示能够。

    private String canEditDetail;//是否能够编辑附件记录。0表示不能编辑，1表示能够编辑。

    private String canEditStore;//是否能够编辑附件文件内容。0表示不能编辑或覆盖上传，1表示能够。
	
    private String existFile="1";
    
    private String searchBy;//搜索输入值
	public String getSearchBy() {
		return searchBy;
	}

	public void setSearchBy(String searchBy) {
		this.searchBy = searchBy;
	}

	public String getExistFile() {
		return existFile;
	}

	public void setExistFile(String existFile) {
		this.existFile = existFile;
	}

	public String getCanListDetail() {
		return canListDetail;
	}

	public void setCanListDetail(String canListDetail) {
		this.canListDetail = canListDetail;
	}

	public String getCanReadDetail() {
		return canReadDetail;
	}

	public void setCanReadDetail(String canReadDetail) {
		this.canReadDetail = canReadDetail;
	}

	public String getCanReadStore() {
		return canReadStore;
	}

	public void setCanReadStore(String canReadStore) {
		this.canReadStore = canReadStore;
	}

	public String getCanEditDetail() {
		return canEditDetail;
	}

	public void setCanEditDetail(String canEditDetail) {
		this.canEditDetail = canEditDetail;
	}

	public String getCanEditStore() {
		return canEditStore;
	}

	public void setCanEditStore(String canEditStore) {
		this.canEditStore = canEditStore;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public String getIsRelative() {
		return isRelative;
	}

	public void setIsRelative(String isRelative) {
		this.isRelative = isRelative;
	}
	public String getAttCode() {
		return attCode;
	}

	public void setAttCode(String atCode) {
		this.attCode = atCode;
	}

	public String getAttName() {
		return attName;
	}

	public void setAttName(String atName) {
		this.attName = atName;
	}

	public Long getAttSize() {
		return attSize;
	}

	public void setAttSize(Long atSize) {
		this.attSize = atSize;
	}

	public String getAttType() {
		return attType;
	}

	public void setAttType(String atType) {
		this.attType = atType;
	}

	public String getAttFormat() {
		return attFormat;
	}

	public void setAttFormat(String atFormat) {
		this.attFormat = atFormat;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public String getIsDbStore() {
		return isDbStore;
	}

	public void setIsDbStore(String isDbStore) {
		this.isDbStore = isDbStore;
	}

	public String getAttPath() {
		return attPath;
	}

	public void setAttPath(String atPath) {
		this.attPath = atPath;
	}

	public String getIsEncrypt() {
		return isEncrypt;
	}

	public void setIsEncrypt(String isEncrypt) {
		this.isEncrypt = isEncrypt;
	}

	public String getMessageDigest() {
		return messageDigest;
	}

	public void setMessageDigest(String messageDigest) {
		this.messageDigest = messageDigest;
	}

	public String getMemo1() {
		return memo1;
	}

	public void setMemo1(String memo1) {
		this.memo1 = memo1;
	}

	public String getMemo2() {
		return memo2;
	}

	public void setMemo2(String memo2) {
		this.memo2 = memo2;
	}

	public String getMemo3() {
		return memo3;
	}

	public void setMemo3(String memo3) {
		this.memo3 = memo3;
	}

	public String getMemo4() {
		return memo4;
	}

	public void setMemo4(String memo4) {
		this.memo4 = memo4;
	}

	public Date getMemo5() {
		return memo5;
	}

	public void setMemo5(Date memo5) {
		this.memo5 = memo5;
	}

	public Date getMemo6() {
		return memo6;
	}

	public void setMemo6(Date memo6) {
		this.memo6 = memo6;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public String getAttDetailId() {
		return attDetailId;
	}

	public void setAttDetailId(String atDetailId) {
		this.attDetailId = atDetailId;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	

	public boolean isAttachmentContentChange() {
		return isAttachmentContentChange;
	}

	public void setAttachmentContentChange(boolean isAttachmentContentChange) {
		this.isAttachmentContentChange = isAttachmentContentChange;
	}

	public String getNewAttPath() {
		return newAttPath;
	}

	public void setNewAttPath(String newAttPath) {
		this.newAttPath = newAttPath;
	}

	public String getNewAttName() {
		return newAttName;
	}

	public void setNewAttName(String newAttName) {
		this.newAttName = newAttName;
	}

	public List<BscAttForm> getCurAttachmentList() {
		return curAttachmentList;
	}

	public void setCurAttachmentList(List<BscAttForm> curAttachmentList) {
		this.curAttachmentList = curAttachmentList;
	}

	public String getTemplateCode() {
		return templateCode;
	}

	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public String getPrintTplPath() {
		return printTplPath;
	}

	public void setPrintTplPath(String printTplPath) {
		this.printTplPath = printTplPath;
	}

	public String getZhengwenPath() {
		return zhengwenPath;
	}

	public void setZhengwenPath(String zhengwenPath) {
		this.zhengwenPath = zhengwenPath;
	}

	public String getRedHeadPath() {
		return redHeadPath;
	}

	public void setRedHeadPath(String redHeadPath) {
		this.redHeadPath = redHeadPath;
	}
	

	public String getAttDiskName() {
		return attDiskName;
	}

	public void setAttDiskName(String attDiskName) {
		this.attDiskName = attDiskName;
	}

	public String getPkName() {
		return pkName;
	}

	public void setPkName(String pkName) {
		this.pkName = pkName;
	}

    public String getEncryptClass() {
		return encryptClass;
	}

	public void setEncryptClass(String encryptClass) {
		this.encryptClass = encryptClass;
	}
    public String getOrgSeq() {
		return orgSeq;
	}

	public void setOrgSeq(String orgSeq) {
		this.orgSeq = orgSeq;
	}
	@Override
	public String toString() {
		return "BscAttForm [id=" + id + ", attCode=" + attCode + ", attName="
				+ attName + ", attSize=" + attSize + ", attType=" + attType
				+ ", atFormat=" + attFormat + ", sortNo=" + sortNo
				+ ", isDbStore=" + isDbStore + ", attPath=" + attPath
				+ ", isEncrypt=" + isEncrypt + ", messageDigest="
				+ messageDigest + ", memo1=" + memo1 + ", memo2=" + memo2
				+ ", memo3=" + memo3 + ", memo4=" + memo4 + ", memo5=" + memo5
				+ ", memo6=" + memo6 + ", creater=" + creater + ", createTime="
				+ createTime + ", modifier=" + modifier + ", modifyTime="
				+ modifyTime + ", tableName=" + tableName + ", recordId="
				+ recordId + ", attDetailId=" + attDetailId + ", memo=" + memo
				+ "]";
	}
    
}
